package com.huawei.appgallery.datastorage.database.impl.process;

import android.content.ContentValues;
import android.database.Cursor;
import java.lang.reflect.Field;
import o.blw;
import o.bmc;
import o.bmg;

public final class LongProcess implements bmc<Long> {
    public /* synthetic */ void ˋ(ContentValues contentValues, String str, Object obj) {
        ˏ(contentValues, str, (Long) obj);
    }

    public String ˊ() {
        return "INTEGER";
    }

    public void ˏ(ContentValues contentValues, String str, Long l) {
        contentValues.put(str, Long.valueOf(ˊ(l)));
    }

    private long ˊ(Long l) {
        if (l != null) {
            return l.longValue();
        }
        return 0;
    }

    public void ˎ(blw o_blw, Field field, Cursor cursor, int i) {
        try {
            field.set(o_blw, Long.valueOf(cursor.getLong(i)));
        } catch (IllegalAccessException e) {
            bmg.ˊ.ˏ("LongProcess", "put value failed:IllegalAccessException:" + o_blw.getClass().getSimpleName());
        } catch (Exception e2) {
            bmg.ˊ.ˏ("LongProcess", "put value failed:Exception:" + o_blw.getClass().getSimpleName());
        }
    }
}
